package com.jingdianjichi.subject.application.convert;

import com.jingdianjichi.subject.application.dto.SubjectAnswerDTO;
import com.jingdianjichi.subject.domain.entity.SubjectAnswerBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectAnswerDTOConverter {
    SubjectAnswerDTOConverter INSTANCE =Mappers.getMapper(SubjectAnswerDTOConverter.class);

    //DTO 转为BO
    SubjectAnswerBO convertDTOToBo(SubjectAnswerDTO subjectAnswerDTO);


    //DTO 转为BO
    List<SubjectAnswerBO> convertListDTOToBo(List<SubjectAnswerDTO> dtoList);




}
